/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.edu.ifal.crazypizza.gui;

/**
 *
 * @author Ana Maria
 */
public class FrmMenu extends javax.swing.JFrame {

    /**
     * Creates new form FrmMenu
     */
    public FrmMenu() {
    //this.setExtendedState(MAXIMIZED_BOTH);
    initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jCheckBoxMenuItem1 = new javax.swing.JCheckBoxMenuItem();
        jLabel1 = new javax.swing.JLabel();
        ImagemCrazy = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        mnuMenu = new javax.swing.JMenuBar();
        mnuArquivo = new javax.swing.JMenu();
        mnuCadastrar = new javax.swing.JMenu();
        mnuCliente = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JPopupMenu.Separator();
        mnuFuncionario = new javax.swing.JMenuItem();
        jSeparator2 = new javax.swing.JPopupMenu.Separator();
        mnuCaixa = new javax.swing.JMenu();
        mnuVender = new javax.swing.JCheckBoxMenuItem();
        jSeparator6 = new javax.swing.JPopupMenu.Separator();
        jMenu1 = new javax.swing.JMenu();
        mnuClientes = new javax.swing.JMenuItem();
        jSeparator3 = new javax.swing.JPopupMenu.Separator();
        mnuFuncionarios = new javax.swing.JMenuItem();
        jSeparator7 = new javax.swing.JPopupMenu.Separator();
        mnuSair = new javax.swing.JMenuItem();
        mnuExibir = new javax.swing.JMenu();
        mnuCardapio = new javax.swing.JMenuItem();
        jSeparator4 = new javax.swing.JPopupMenu.Separator();
        mnuRelatorio = new javax.swing.JMenuItem();

        jCheckBoxMenuItem1.setSelected(true);
        jCheckBoxMenuItem1.setText("jCheckBoxMenuItem1");

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("MENU");
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel1.setFont(new java.awt.Font("Snap ITC", 0, 36)); // NOI18N
        jLabel1.setForeground(new java.awt.Color(255, 51, 153));
        getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(674, 599, -1, -1));
        getContentPane().add(ImagemCrazy, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));

        jLabel2.setIcon(new javax.swing.ImageIcon("C:\\Users\\Lucas\\Documents\\NetBeansProjects\\crazy-pizza01\\trunk\\crazy-pizza\\src\\br\\edu\\ifal\\crazypizza\\imagens\\LOGO MAIOR.jpg")); // NOI18N
        getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1370, 680));

        mnuMenu.setBackground(new java.awt.Color(0, 0, 0));
        mnuMenu.setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(0, 204, 204)));

        mnuArquivo.setText("Arquivo");

        mnuCadastrar.setText("Cadastrar");

        mnuCliente.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.ALT_MASK));
        mnuCliente.setText("Cliente");
        mnuCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuClienteActionPerformed(evt);
            }
        });
        mnuCadastrar.add(mnuCliente);
        mnuCadastrar.add(jSeparator1);

        mnuFuncionario.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.ALT_MASK));
        mnuFuncionario.setText("Funcionário");
        mnuFuncionario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuFuncionarioActionPerformed(evt);
            }
        });
        mnuCadastrar.add(mnuFuncionario);

        mnuArquivo.add(mnuCadastrar);
        mnuArquivo.add(jSeparator2);

        mnuCaixa.setText("Caixa");

        mnuVender.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.ALT_MASK));
        mnuVender.setText("Vender");
        mnuVender.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuVenderActionPerformed(evt);
            }
        });
        mnuCaixa.add(mnuVender);

        mnuArquivo.add(mnuCaixa);
        mnuArquivo.add(jSeparator6);

        jMenu1.setText("Buscar");

        mnuClientes.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.SHIFT_MASK));
        mnuClientes.setText("Clientes");
        mnuClientes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuClientesActionPerformed(evt);
            }
        });
        jMenu1.add(mnuClientes);
        jMenu1.add(jSeparator3);

        mnuFuncionarios.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.SHIFT_MASK));
        mnuFuncionarios.setText("Funcionários");
        mnuFuncionarios.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuFuncionariosActionPerformed(evt);
            }
        });
        jMenu1.add(mnuFuncionarios);

        mnuArquivo.add(jMenu1);
        mnuArquivo.add(jSeparator7);

        mnuSair.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.SHIFT_MASK));
        mnuSair.setText("Sair");
        mnuSair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuSairActionPerformed(evt);
            }
        });
        mnuArquivo.add(mnuSair);

        mnuMenu.add(mnuArquivo);

        mnuExibir.setText("Exibir");

        mnuCardapio.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.SHIFT_MASK));
        mnuCardapio.setText("Cardápio");
        mnuCardapio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuCardapioActionPerformed(evt);
            }
        });
        mnuExibir.add(mnuCardapio);
        mnuExibir.add(jSeparator4);

        mnuRelatorio.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.SHIFT_MASK));
        mnuRelatorio.setText("Relatório");
        mnuRelatorio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuRelatorioActionPerformed(evt);
            }
        });
        mnuExibir.add(mnuRelatorio);

        mnuMenu.add(mnuExibir);

        setJMenuBar(mnuMenu);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void mnuSairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuSairActionPerformed
        // TODO add your handling code here:
        this.dispose();
    }//GEN-LAST:event_mnuSairActionPerformed

    private void mnuVenderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuVenderActionPerformed
        FrmVendas frmVen = new FrmVendas();
        //para fechar apenas essa janela, deixando a aplicação aberta:
        frmVen.setDefaultCloseOperation(HIDE_ON_CLOSE);
        //torna a janela visível
        frmVen.setVisible(true);    // TODO add your handling code here:
    }//GEN-LAST:event_mnuVenderActionPerformed

    private void mnuFuncionarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuFuncionarioActionPerformed
        // TODO add your handling code here:
        FrmCadastroFuncionario frmCadFun = new FrmCadastroFuncionario();
        //para fechar apenas essa janela, deixando a aplicação aberta:
        frmCadFun.setDefaultCloseOperation(HIDE_ON_CLOSE);
        //torna a janela visível
        frmCadFun.setVisible(true);
    }//GEN-LAST:event_mnuFuncionarioActionPerformed

    private void mnuClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuClienteActionPerformed
        // TODO add your handling code here:
        FrmCadastroCliente frmCada = new FrmCadastroCliente();
        //para fechar apenas essa janela, deixando a aplicação aberta:
        frmCada.setDefaultCloseOperation(HIDE_ON_CLOSE);
        //torna a janela visível
        frmCada.setVisible(true);
    }//GEN-LAST:event_mnuClienteActionPerformed

    private void mnuCardapioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuCardapioActionPerformed
        // TODO add your handling code here:
        FrmCardapio frmCar = new FrmCardapio();
        //para fechar apenas essa janela, deixando a aplicação aberta:
        frmCar.setDefaultCloseOperation(HIDE_ON_CLOSE);
        //torna a janela visível
        frmCar.setVisible(true);
    }//GEN-LAST:event_mnuCardapioActionPerformed

    private void mnuFuncionariosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuFuncionariosActionPerformed
      FrmBuscaFuncionarios frmBF = new FrmBuscaFuncionarios();
       
        frmBF.setDefaultCloseOperation(HIDE_ON_CLOSE);
        //torna a janela visível
        frmBF.setVisible(true);  // TODO add your handling code here:
    }//GEN-LAST:event_mnuFuncionariosActionPerformed

    private void mnuClientesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuClientesActionPerformed
    FrmBuscaClientes frmBC = new FrmBuscaClientes();
       
        frmBC.setDefaultCloseOperation(HIDE_ON_CLOSE);
        
        frmBC.setVisible(true);
        // TODO add your handling code here:
    }//GEN-LAST:event_mnuClientesActionPerformed

    private void mnuRelatorioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuRelatorioActionPerformed
    FrmRelatorio frmRl = new FrmRelatorio();
       
        frmRl.setDefaultCloseOperation(HIDE_ON_CLOSE);
        
        frmRl.setVisible(true);    // TODO add your handling code here:
    }//GEN-LAST:event_mnuRelatorioActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {

    /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(FrmMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(FrmMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(FrmMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(FrmMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
       java.awt.EventQueue.invokeLater(new Runnable() {
        public void run() {
      new FrmMenu().setVisible(true);
        }
       });
   }


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel ImagemCrazy;
    private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JPopupMenu.Separator jSeparator1;
    private javax.swing.JPopupMenu.Separator jSeparator2;
    private javax.swing.JPopupMenu.Separator jSeparator3;
    private javax.swing.JPopupMenu.Separator jSeparator4;
    private javax.swing.JPopupMenu.Separator jSeparator6;
    private javax.swing.JPopupMenu.Separator jSeparator7;
    private javax.swing.JMenu mnuArquivo;
    private javax.swing.JMenu mnuCadastrar;
    private javax.swing.JMenu mnuCaixa;
    private javax.swing.JMenuItem mnuCardapio;
    private javax.swing.JMenuItem mnuCliente;
    private javax.swing.JMenuItem mnuClientes;
    private javax.swing.JMenu mnuExibir;
    private javax.swing.JMenuItem mnuFuncionario;
    private javax.swing.JMenuItem mnuFuncionarios;
    private javax.swing.JMenuBar mnuMenu;
    private javax.swing.JMenuItem mnuRelatorio;
    private javax.swing.JMenuItem mnuSair;
    private javax.swing.JCheckBoxMenuItem mnuVender;
    // End of variables declaration//GEN-END:variables
}
